package pkmn.move;

import pkmn.battle.BattlePokemon;
import pkmn.status.BattleStatusEnum;
import pkmn.util.Util;

public class ApplyConfusion extends IndirectAction {

    @Override
    public void execute(BattlePokemon battlePokemon) {

        //verify if already confusion
        if (battlePokemon.haveBattleStatus(BattleStatusEnum.confusion)) {
            Util.printAndWait("But, it failed!");
            return;
        }
        //set status
        battlePokemon.setBattleStatus(BattleStatusEnum.confusion);
        Util.printAndWait(battlePokemon + " became confused!");
    }
}
